<template>
  <div class="howToUse-item">
    <h3 class="text-purple-1300 text-22 leading-7 font-semibold break-words w-full">
      {{$t('vs_howToUse',{toolName: $websiteName(toolData)})}}
    </h3>
    <p class="text-base text-gray-1500 mt-4"
      v-if="website && hasRealVal(website.how_to_use)">
      {{website.how_to_use}}
    </p>
    <el-empty v-else
      :description="$t('vs_noData')"></el-empty>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'CompareVsHowToUse',
  props: {
    toolData: {
      type: Object | null,
      default() {
        return {}
      },
    },
    website: {
      type: Object | null,
      default() {
        return {}
      },
    },
  },
  computed: {
    ...mapState({
      locale: (state) => state.locale,
    }),
  },
}
</script>
